package day03.homework.standard;

public class IfPractice7 {
    public static void main(String[] args) {
        System.out.println("1.满500打8折");
        double price = 500.0;
        if (price >= 500) {
            price *= 0.8;
        }
        System.out.println("价格为" + price);

        System.out.println("2.判断成绩是否合法");
        double score = 280;
        if (score >= 0 && score <= 100) {
            System.out.println("成绩合法");
        } else {
            System.out.println("成绩不合法");
        }
        System.out.println("继续执行...");
    }

}
